assert_that(p.cargo_process("build"),
execs().with_status(0).with_stdout(format!("\
{updating} registry `{reg}`
-{downloading} bar v0.0.1 (the package registry)
-{compiling} bar v0.0.1 (the package registry)
+{downloading} bar v0.0.1 (registry file://[..])
+{compiling} bar v0.0.1 (registry file://[..])
{compiling} foo v0.0.1 ({dir})
",
updating = UPDATING,
assert_that(p.cargo_process("build"),
execs().with_status(0).with_stdout(format!("\
{updating} registry `{reg}`
-[..] bar v0.0.1 (the package registry)
+[..] bar v0.0.1 (registry file://[..])
[..] foo v0.0.1 ({dir})
",
updating = UPDATING,
assert_that(p.cargo_process("build"),
execs().with_status(0).with_stdout(format!("\
{updating} registry `{reg}`
-{downloading} [..] v0.0.1 (the package registry)
-{downloading} [..] v0.0.1 (the package registry)
-{compiling} baz v0.0.1 (the package registry)
-{compiling} bar v0.0.1 (the package registry)
+{downloading} [..] v0.0.1 (registry file://[..])
+{downloading} [..] v0.0.1 (registry file://[..])
+{compiling} baz v0.0.1 (registry file://[..])
+{compiling} bar v0.0.1 (registry file://[..])
{compiling} foo v0.0.1 ({dir})
",
updating = UPDATING,
assert_that(p.cargo_process("build"),
execs().with_status(101).with_stderr("\
no package named `nonexistent` found (required by `foo`)
-location searched: the package registry
+location searched: registry file://[..]
version required: >= 0.0.0
"));
})
Unable to get packages from source
Caused by:
- Failed to download package `bad-cksum v0.0.1 (the package registry)` from [..]
+ Failed to download package `bad-cksum v0.0.1 (registry file://[..])` from [..]
Caused by:
- Failed to verify the checksum of `bad-cksum v0.0.1 (the package registry)`
+ Failed to verify the checksum of `bad-cksum v0.0.1 (registry file://[..])`
"));
})
assert_that(p.cargo_process("build"),
execs().with_status(101).with_stderr("\
no package named `notyet` found (required by `foo`)
-location searched: the package registry
+location searched: registry file://[..]
version required: >= 0.0.0
"));
assert_that(p.process(cargo_dir().join("cargo")).arg("build"),
execs().with_status(0).with_stdout(format!("\
{updating} registry `{reg}`
-{downloading} notyet v0.0.1 (the package registry)
-{compiling} notyet v0.0.1 (the package registry)
+{downloading} notyet v0.0.1 (registry file://[..])
+{compiling} notyet v0.0.1 (registry file://[..])
{compiling} foo v0.0.1 ({dir})
",
updating = UPDATING,
Caused by:
no package named `notyet` found (required by `foo`)
-location searched: the package registry
+location searched: registry file://[..]
version required: ^0.0.1
"));
{packaging} foo v0.0.1 ({dir})
{verifying} foo v0.0.1 ({dir})
{updating} registry `[..]`
-{downloading} notyet v0.0.1 (the package registry)
-{compiling} notyet v0.0.1 (the package registry)
+{downloading} notyet v0.0.1 (registry file://[..])
+{compiling} notyet v0.0.1 (registry file://[..])
{compiling} foo v0.0.1 ({dir}[..])
",
packaging = PACKAGING,
assert_that(p.process(cargo_dir().join("cargo")).arg("build"),
execs().with_status(0).with_stdout(format!("\
{updating} registry `[..]`
-{downloading} bar v0.0.1 (the package registry)
-{compiling} bar v0.0.1 (the package registry)
+{downloading} bar v0.0.1 (registry file://[..])
+{compiling} bar v0.0.1 (registry file://[..])
{compiling} foo v0.0.1 ({dir})
", updating = UPDATING, downloading = DOWNLOADING, compiling = COMPILING,
dir = p.url()).as_slice()));
assert_that(p.process(cargo_dir().join("cargo")).arg("build"),
execs().with_status(0).with_stdout(format!("\
{updating} registry `[..]`
-{downloading} [..] v0.0.1 (the package registry)
-{downloading} [..] v0.0.1 (the package registry)
-{compiling} baz v0.0.1 (the package registry)
-{compiling} bar v0.0.1 (the package registry)
+{downloading} [..] v0.0.1 (registry file://[..])
+{downloading} [..] v0.0.1 (registry file://[..])
+{compiling} baz v0.0.1 (registry file://[..])
+{compiling} bar v0.0.1 (registry file://[..])
{compiling} foo v0.0.1 ({dir})
", updating = UPDATING, downloading = DOWNLOADING, compiling = COMPILING,
dir = p.url()).as_slice()));
assert_that(p.process(cargo_dir().join("cargo")).arg("build"),
execs().with_status(0).with_stdout(format!("\
{updating} registry `[..]`
-{downloading} [..] v0.0.1 (the package registry)
-{downloading} [..] v0.0.1 (the package registry)
-{compiling} baz v0.0.1 (the package registry)
-{compiling} bar v0.0.1 (the package registry)
+{downloading} [..] v0.0.1 (registry file://[..])
+{downloading} [..] v0.0.1 (registry file://[..])
+{compiling} baz v0.0.1 (registry file://[..])
+{compiling} bar v0.0.1 (registry file://[..])
{compiling} foo v0.0.1 ({dir})
", updating = UPDATING, downloading = DOWNLOADING, compiling = COMPILING,
dir = p.url()).as_slice()));
assert_that(p.process(cargo_dir().join("cargo")).arg("build"),
execs().with_status(101).with_stderr("\
no package named `baz` found (required by `bar`)
-location searched: the package registry
+location searched: registry file://[..]
version required: = 0.0.2
"));
})
assert_that(p.process(cargo_dir().join("cargo")).arg("update"),
execs().with_status(101).with_stderr("\
no package named `bar` found (required by `foo`)
-location searched: the package registry
+location searched: registry file://[..]
version required: *
"));
})
assert_that(p.process(cargo_dir().join("cargo")).arg("build"),
execs().with_status(0).with_stdout(format!("\
{updating} registry `[..]`
-{downloading} bar v0.0.1 (the package registry)
+{downloading} bar v0.0.1 (registry file://[..])
", updating = UPDATING, downloading = DOWNLOADING).as_slice()));
})
assert_that(p.process(cargo_dir().join("cargo")).arg("build"),
execs().with_status(0).with_stdout(format!("\
-{downloading} [..] v0.0.2 (the package registry)
-{compiling} bar v0.0.2 (the package registry)
+{downloading} [..] v0.0.2 (registry file://[..])
+{compiling} bar v0.0.2 (registry file://[..])
{compiling} foo v0.0.1 ({dir})
", downloading = DOWNLOADING, compiling = COMPILING,
dir = p.url()).as_slice()));